package com.zan.t1;

/**
 * @Author Zan
 * @Create 2024/3/5 16:51
 * @Description :
 */
public class Demo1_2 {

    private static int count;

    public static void main(String[] args) {
        try {
            method1();
        } catch (Throwable e) {
            e.printStackTrace();
            System.out.println(count);
        }
    }

    private static void method1() {
        count++;
        method1();
    }

}
